<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>确认订单 - 钓鱼小程序</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 移动端滚动条优化 - 隐藏滚动条 */
        ::-webkit-scrollbar {
            display: none;
        }
        
        * {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
            max-width: 375px;
            margin: 0 auto;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding-top: 50px;
        }

        .header {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 375px;
            background: #3498DB;
            color: white;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 100;
            justify-content: space-between;
        }

        .back-btn {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
        }

        .header h1 {
            font-size: 18px;
            font-weight: 600;
            flex: 1;
            text-align: center;
        }

        .main-content {
            flex: 1;
            padding-bottom: 80px;
        }

        .section {
            background: white;
            margin-bottom: 8px;
            padding: 16px;
        }

        .section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            color: #333;
        }

        .address-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .address-icon {
            width: 20px;
            height: 20px;
            background: #3498DB;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            flex-shrink: 0;
        }

        .address-info {
            flex: 1;
        }

        .address-name-phone {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .address-detail {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
        }

        .address-arrow {
            color: #999;
            font-size: 14px;
        }

        .product-item {
            display: flex;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .product-item:last-child {
            border-bottom: none;
        }

        .product-image {
            width: 60px;
            height: 60px;
            border-radius: 6px;
            background: #f0f0f0;
            object-fit: cover;
        }

        .product-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .product-title {
            font-size: 14px;
            font-weight: 500;
            line-height: 1.3;
        }

        .product-specs {
            font-size: 12px;
            color: #666;
        }

        .product-price-qty {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 4px;
        }

        .product-price {
            font-size: 14px;
            font-weight: 600;
            color: #e74c3c;
        }

        .product-qty {
            font-size: 12px;
            color: #666;
        }

        .delivery-options {
            display: flex;
            gap: 12px;
            margin-top: 8px;
        }

        .delivery-option {
            flex: 1;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .delivery-option.selected {
            border-color: #3498DB;
            background: #f8fbff;
        }

        .delivery-title {
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .delivery-desc {
            font-size: 11px;
            color: #666;
        }

        .coupon-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .coupon-item:last-child {
            border-bottom: none;
        }

        .coupon-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .coupon-icon {
            width: 16px;
            height: 16px;
            background: #ff6b6b;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
        }

        .coupon-text {
            font-size: 14px;
        }

        .coupon-discount {
            font-size: 12px;
            color: #e74c3c;
            font-weight: 500;
        }

        .coupon-arrow {
            color: #999;
            font-size: 12px;
        }

        .payment-methods {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 8px;
        }

        .payment-method {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .payment-method.selected {
            border-color: #3498DB;
            background: #f8fbff;
        }

        .payment-icon {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: white;
        }

        .wechat-icon {
            background: #07c160;
        }

        .alipay-icon {
            background: #1677ff;
        }

        .payment-name {
            flex: 1;
            font-size: 14px;
        }

        .payment-radio {
            width: 16px;
            height: 16px;
            border: 2px solid #ddd;
            border-radius: 50%;
            position: relative;
        }

        .payment-method.selected .payment-radio {
            border-color: #3498DB;
        }

        .payment-method.selected .payment-radio::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 8px;
            height: 8px;
            background: #3498DB;
            border-radius: 50%;
        }

        .cost-breakdown {
            margin-top: 8px;
        }

        .cost-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            font-size: 14px;
        }

        .cost-label {
            color: #666;
        }

        .cost-value {
            color: #333;
        }

        .cost-value.discount {
            color: #27ae60;
        }

        .cost-value.total {
            color: #e74c3c;
            font-weight: 600;
            font-size: 16px;
        }

        .agreement {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            font-size: 12px;
            color: #666;
        }

        .agreement-checkbox {
            width: 14px;
            height: 14px;
            border: 1px solid #ddd;
            border-radius: 2px;
            position: relative;
            cursor: pointer;
        }

        .agreement-checkbox.checked {
            background: #3498DB;
            border-color: #3498DB;
        }

        .agreement-checkbox.checked::after {
            content: '✓';
            position: absolute;
            top: -2px;
            left: 1px;
            color: white;
            font-size: 10px;
        }

        .agreement a {
            color: #3498DB;
            text-decoration: none;
        }

        .bottom-bar {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 375px;
            background: white;
            border-top: 1px solid #eee;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .total-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .total-price {
            font-size: 16px;
            font-weight: 600;
            color: #e74c3c;
        }

        .total-items {
            font-size: 12px;
            color: #666;
        }

        .pay-btn {
            background: #3498DB;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 24px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
        }

        .pay-btn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
        }

        /* 小程序胶囊按钮 */
        .capsule-btn {
            background: rgba(255,255,255,0.2);
            border-radius: 16px;
            padding: 6px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .capsule-btn .dot {
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <div class="header">
        <button class="back-btn">←</button>
        <h1>确认订单</h1>
        <div class="capsule-btn">
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
    </div>

    <div class="main-content">
        <!-- 收货地址 -->
        <div class="section">
            <div class="address-section">
                <div class="address-icon">📍</div>
                <div class="address-info">
                    <div class="address-name-phone">张三 138****8888</div>
                    <div class="address-detail">北京市朝阳区三里屯街道工体北路8号院1号楼101室</div>
                </div>
                <div class="address-arrow">></div>
            </div>
        </div>

        <!-- 商品信息 -->
        <div class="section">
            <div class="section-title">商品信息</div>
            <div class="product-item">
                <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Crect width='60' height='60' fill='%23f0f0f0'/%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' dy='0.3em' font-family='Arial' font-size='10' fill='%23999'%3E鱼竿%3C/text%3E%3C/svg%3E" alt="碳素鱼竿" class="product-image">
                <div class="product-info">
                    <div class="product-title">碳素超轻鱼竿 3.6米台钓竿</div>
                    <div class="product-specs">长度: 3.6米 | 调性: 28调</div>
                    <div class="product-price-qty">
                        <span class="product-price">¥168.00</span>
                        <span class="product-qty">x1</span>
                    </div>
                </div>
            </div>
            <div class="product-item">
                <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Crect width='60' height='60' fill='%23f0f0f0'/%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' dy='0.3em' font-family='Arial' font-size='10' fill='%23999'%3E鱼线%3C/text%3E%3C/svg%3E" alt="尼龙鱼线" class="product-image">
                <div class="product-info">
                    <div class="product-title">进口尼龙鱼线 100米装</div>
                    <div class="product-specs">线号: 2.0号 | 拉力: 8.5kg</div>
                    <div class="product-price-qty">
                        <span class="product-price">¥35.00</span>
                        <span class="product-qty">x2</span>
                    </div>
                </div>
            </div>
        </div>

        <!-- 配送方式 -->
        <div class="section">
            <div class="section-title">配送方式</div>
            <div class="delivery-options">
                <div class="delivery-option selected">
                    <div class="delivery-title">标准配送</div>
                    <div class="delivery-desc">3-5天送达</div>
                </div>
                <div class="delivery-option">
                    <div class="delivery-title">次日达</div>
                    <div class="delivery-desc">明日送达 +¥10</div>
                </div>
            </div>
        </div>

        <!-- 优惠券 -->
        <div class="section">
            <div class="section-title">优惠券</div>
            <div class="coupon-item">
                <div class="coupon-info">
                    <div class="coupon-icon">券</div>
                    <span class="coupon-text">满100减20优惠券</span>
                </div>
                <div>
                    <span class="coupon-discount">-¥20.00</span>
                    <span class="coupon-arrow">></span>
                </div>
            </div>
        </div>

        <!-- 支付方式 -->
        <div class="section">
            <div class="section-title">支付方式</div>
            <div class="payment-methods">
                <div class="payment-method selected">
                    <div class="payment-icon wechat-icon">微</div>
                    <span class="payment-name">微信支付</span>
                    <div class="payment-radio"></div>
                </div>
            </div>
        </div>

        <!-- 费用明细 -->
        <div class="section">
            <div class="section-title">费用明细</div>
            <div class="cost-breakdown">
                <div class="cost-item">
                    <span class="cost-label">商品金额</span>
                    <span class="cost-value">¥238.00</span>
                </div>
                <div class="cost-item">
                    <span class="cost-label">运费</span>
                    <span class="cost-value">¥0.00</span>
                </div>
                <div class="cost-item">
                    <span class="cost-label">优惠券</span>
                    <span class="cost-value discount">-¥20.00</span>
                </div>
                <div class="cost-item">
                    <span class="cost-label">实付金额</span>
                    <span class="cost-value total">¥218.00</span>
                </div>
            </div>

            <div class="agreement">
                <div class="agreement-checkbox checked"></div>
                <span>我已阅读并同意 <a href="#">《购买协议》</a> 和 <a href="#">《隐私政策》</a></span>
            </div>
        </div>
    </div>

    <div class="bottom-bar">
        <div class="total-info">
            <div class="total-price">¥218.00</div>
            <div class="total-items">共2件商品</div>
        </div>
        <button class="pay-btn">立即支付</button>
    </div>

    <script>
        // 配送方式选择
        document.querySelectorAll('.delivery-option').forEach(option => {
            option.addEventListener('click', function() {
                document.querySelectorAll('.delivery-option').forEach(o => o.classList.remove('selected'));
                this.classList.add('selected');
            });
        });

        // 支付方式选择
        document.querySelectorAll('.payment-method').forEach(method => {
            method.addEventListener('click', function() {
                document.querySelectorAll('.payment-method').forEach(m => m.classList.remove('selected'));
                this.classList.add('selected');
            });
        });

        // 协议复选框
        document.querySelector('.agreement-checkbox').addEventListener('click', function() {
            this.classList.toggle('checked');
        });
    </script>
</body>
</html> 